//package com.lyd.management.config;
//
//import com.lyd.management.filter.LoginCheckFilter;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class WebConfig {
//
//    @Autowired
//    private LoginCheckFilter loginCheckFilter;
//
//    @Bean
//    public FilterRegistrationBean<LoginCheckFilter> loginCheckRegistration(){
//        FilterRegistrationBean<LoginCheckFilter> registration = new FilterRegistrationBean<>();
//        registration.setFilter(loginCheckFilter);
//        registration.addUrlPatterns("/*");
//        registration.setName("loginCheckFilter");
//        registration.setOrder(2);
//        return registration;
//    }
//}
